//
//  IDPViewController.h
//  Aestroid Game
//
//  Created by iD Student on 7/10/13.
//  Copyright (c) 2013 jasonkurtzman. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "IDPAsteroid.h"
#import "IDPMissile.h"

@interface IDPViewController : UIViewController
{
    IBOutlet UIImageView *spaceShip;
    BOOL upPressed, downPressed, leftPressed, rightPressed;
    int angle;
    int score;
    
    NSTimer *gameTimer;
    NSMutableArray *asteroidList;
    NSMutableArray *missileList;
}

-(IBAction)upButtonPressed:(id)sender;
-(IBAction)downButtonPressed:(id)sender;
-(IBAction)leftButtonPressed:(id)sender;
-(IBAction)rightButtonPressed:(id)sender;
-(IBAction)buttonReleased:(id)sender;

-(void) updateGame;

-(void) moveAsteroids;
-(void) spawnAsteroids;

-(void) updateMissiles;
-(void) checkForMissileCollisions;
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;

@end
